home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_gtk+.idb / usr / freeware / src / gtk+ / patches.z / patches
Encoding:
Text File  |  1999-07-16  |  1.7 KB  |  60 lines

  1. --- ./gtk/gtkrc.c    Mon May 10 22:31:09 1999
  2. +++ ../gtk+-1.2.3/./gtk/gtkrc.c    Mon May 17 14:10:23 1999
  3. @@ -39,6 +39,17 @@
  4.  #include "gtkthemes.h"
  5.  #include "gtkintl.h"
  6.  
  7. +#define ABILIB "lib"
  8. +#ifdef _MIPS_SIM
  9. +# if (_MIPS_SIM == _MIPS_SIM_NABI32)
  10. +#  undef ABILIB
  11. +#  define ABILIB "lib32"
  12. +# elif (_MIPS_SIM == _MIPS_SIM_ABI64)
  13. +#  undef ABILIB
  14. +#  define ABILIB "lib64"
  15. +# endif
  16. +#endif
  17. +
  18.  typedef struct _GtkRcSet    GtkRcSet;
  19.  typedef struct _GtkRcNode   GtkRcNode;
  20.  typedef struct _GtkRcFile   GtkRcFile;
  21. @@ -231,9 +242,9 @@
  22.  
  23.    var = getenv("GTK_EXE_PREFIX");
  24.    if (var)
  25. -    path = g_strdup_printf("%s%s", var, "/lib/gtk/themes/engines");
  26. +    path = g_strdup_printf("%s%s", var, "/" ABILIB "/gtk/themes/engines");
  27.    else
  28. -    path = g_strdup_printf("%s%s", GTK_EXE_PREFIX, "/lib/gtk/themes/engines");
  29. +    path = g_strdup_printf("%s%s", GTK_EXE_PREFIX, "/" ABILIB "/gtk/themes/engines");
  30.  
  31.    return path;
  32.  }
  33. @@ -282,18 +293,21 @@
  34.    
  35.    var = getenv("GTK_EXE_PREFIX");
  36.    if (var)
  37. -    path = g_strdup_printf("%s%s", var, "/lib/gtk/themes/engines");
  38. +    path = g_strdup_printf("%s%s", var, "/" ABILIB "/gtk/themes/engines");
  39.    else
  40. -    path = g_strdup_printf("%s%s", GTK_EXE_PREFIX, "/lib/gtk/themes/engines");
  41. +    path = g_strdup_printf("%s%s", GTK_EXE_PREFIX, "/" ABILIB "/gtk/themes/engines");
  42.    module_path[n++] = g_strdup(path);
  43.    g_free(path);
  44.  
  45.    var = g_get_home_dir ();
  46.    if (var)
  47. -    path = g_strdup_printf("%s%s", var, "/.gtk/lib/themes/engines");
  48. -  module_path[n++] = g_strdup(path);
  49. +    {
  50. +      path = g_strdup_printf("%s%s", var, "/.gtk/" ABILIB "/themes/engines");
  51. +      module_path[n++] = g_strdup(path);
  52. +      g_free(path);
  53. +    }
  54. +
  55.    module_path[n] = NULL;
  56. -  g_free(path);
  57.  }
  58.  
  59.  static void
  60.